package com.lee.singleton;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class Singleton {
	private Singleton() {

	}

	private static class SingletonFactory {
		private static Singleton instance = new Singleton();
	}

	public static Singleton getInstance() {
		return SingletonFactory.instance;
	}

	public Object readResolve() {
		return getInstance();
	}
}
